<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCourseQuestionOptionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('course_question_options', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('course_question_id')->default(0)->comment('问题id');
            $table->string('option')                ->default('')->comment('选项');
            $table->integer('is_true')              ->default(0)->comment('是否正确');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
//        Schema::dropIfExists('course_question_options');
    }
}
